#!/bin/bash
###alias
## delete all <none> images (dangling)(force) 
#alias docker-rmi-none="docker images -f dangling=true | sed '1d' | awk '{printf  \"%s \",\$3}' | xargs docker rmi -f"
## delete all containers locally(force)
#alias docker-rm-all="docker ps -a | sed '1d' | awk '{printf  \"%s \",\$1}' | xargs docker rm -f"
###alias

sed -n '/^###alias/,/^###alias/s/^#//p' $0 | sed '1d;$d' >> ~/.bashrc
